﻿if exists (select * from dbo.sysobjects where name = 'sp_Config_Paging')	drop procedure [dbo].[sp_Config_Paging]Go CREATE PROCEDURE dbo.sp_Config_Paging	@CurentPage int,	@PageSize intAS	WITH tbpage_Paging AS	(		SELECT ROW_NUMBER()		OVER(ORDER BY coId) AS RowNum,*		FROM [dbo].[Config]	)	SELECT * FROM tbpage_Paging	WHERE RowNum BETWEEN (@CurentPage - 1) * @PageSize + 1 AND @CurentPage * @PageSize	ORDER BY coIdGo 